#!/bin/bash

#------------------------------------------------------------------------------
#Filename:	74787-hwdata.sh
#Version:	1.1
#Date:	        2013/07/11
#Author:	yuanhui.shi
#Email:	        yuanhui.shi@cs2c.com.cn
#Summary:	02.01系统核心功能-06基础命令行工具-04硬件信息收集-03验证hwdata包对系统硬件信息收集功能的支持
#Notes:	        hwdata软件包
#Copyright:	China Standard Software Co.,Ltd.
#History:
#	        Version 1.0,2013/07/11
#	        -The first one
#	        Version 1.1,2013/09/05
#	        -Modify the script to satisfy the shell standard
#------------------------------------------------------------------------------


PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH

source ../../lib/Echo.sh

function CleanData ()
{
  #rpm -ivh hwdata --nodeps &> /dev/null
  EchoInfo "74787-hwdata.sh执行完毕"
}

trap "CleanData" EXIT

#rpm -e hwdata --nodeps &>/dev/null
rpm -qa | grep "^hwdata"
EchoResult "hwdata installed"

lspci
EchoResult "输出硬件设备基本信息" 


